import java.net.ServerSocket;

public class Serveur {
	public static String REPERTOIRE; 

	public static void main(String[] args) throws Exception {
		if (args.length != 2) {
			throw new Exception("Parametre incorrect");
		} else {
			
			int port = Integer.parseInt(args[0]);
			REPERTOIRE = args[1];
			if (port < 1023) {
				throw new Exception("Port < 1023");
			} else {
				ServerSocket serveur = new ServerSocket(port);
				while(true){
					FtpRequest request = new FtpRequest(serveur.accept());
				}

			}
		}
	}

}
